#include <iostream>

int main()
{
  uint64_t i = 1;
  std::size_t s = 32;

  std::cout << "This example shows that by default, number 1 is 32-bit." << std::endl;
  std::cout << "Use 1 << 32.           ";
  if (i & (1 << s))
    {
      std::cout << "The 32nd bit of " << i << " is 1." << std::endl;
    }
  else
    {
      std::cout << "The 32nd bit of " << i << " is 0." << std::endl;
    }

  std::cout << "Use (uint64_t)1 << 32. ";
  if (i & ((uint64_t)1 << s))
    {
      std::cout << "The 32nd bit of " << i << " is 1." << std::endl;
    }
  else
    {
      std::cout << "The 32nd bit of " << i << " is 0." << std::endl;
    }
}
